package com.rs.dao;

import com.github.pagehelper.Page;
import com.rs.model.ZhClasses;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZhClassesMapper {
   

    //删除一个班级
    int deleteByPrimaryKey(Integer clId);

    int insert(ZhClasses record);

    //添加一个班级
    int insertSelective(ZhClasses record);
    
    /**
     * 展示所有 填写了结业时间的班级
     * @return
     */
    Page<ZhClasses> graduationZhClassessByEnd(ZhClasses record);

    //展示一个班级信息
    ZhClasses selectByPrimaryKey(Integer clId);

    //修改一条班级进度信息
    int updateByPrimaryKeySelective(ZhClasses record);

    int updateByPrimaryKey(ZhClasses record);
    
    //展示所有毕业班级 
    Page<ZhClasses> graduationZhClassess();
    
    //展示所有未毕业班级 
    Page<ZhClasses> notGraduateZhClassess();
    
    int selectZhClassesNotNameRepeat(String name);
    
    //教学进度 修改
    int updateTeachingProgress(ZhClasses record);
    
    //结业申请
    int updateGraduationToApplyFor(@Param("clId")Integer clId);
    
    //结业审核
    int updateGraduationAudit(ZhClasses record);
    
    //得到所有毕业班级
    List<ZhClasses> listZhClasses();
    
    
    
}